package com.wdd.atcrowdfunding.potal.service.impl;

import com.wdd.atcrowdfunding.bean.Return;
import com.wdd.atcrowdfunding.manager.dao.ReturnMapper;
import com.wdd.atcrowdfunding.potal.service.ReturnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReturnServiceImpl implements ReturnService {

    @Autowired
    private ReturnMapper returnMapper;

    @Override
    public void insert(Return rt) {
        returnMapper.insert(rt);
    }

    @Override
    public List<Return> selectByPid(Integer id) {
        return returnMapper.selectByPid(id);
    }

    @Override
    public void deleteById(String id) {
        returnMapper.deleteByPrimaryKey(Integer.parseInt(id));
    }

}
